package com.ywl.designpattern.template;

/**
 * 3.最后，编写客户端代码来使用这些类
 * @author yuwl
 * @description
 * @since 2024-06-28 09:29
 */
public class TemplateMethodPatternDemo {
    public static void main(String[] args) {
        Beverage tea = new Tea();
        System.out.println("Making tea...");
        tea.prepareRecipe();

        System.out.println();

        Beverage coffee = new Coffee();
        System.out.println("Making coffee...");
        coffee.prepareRecipe();
    }
}

